Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow temperatures to work when the display name is changed #44

Merged
merged 1 commit into from May 26, 2012

Conversation

twalpole
Copy link
Contributor

Some changes so that temperature units are still handled correctly when their display names are changed

olbrich added a commit that referenced this pull request May 26, 2012
allow temperatures to work when the display name is changed
@olbrich olbrich merged commit 52ee093 into olbrich:master May 26, 2012
@olbrich
Copy link
Owner

olbrich commented May 26, 2012

Good catch, thanks!

olbrich added a commit that referenced this pull request May 27, 2012
…after themselves

* remove all hard coded temperature handling from unit.rb
* generate regexes required to detect temperatures and degrees
* push temperature conversion routines into procs on the Unit definition.  This makes it possible to introduce arbitrary (and non-linear) temperature scales.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants